<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

<!--    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_info" class="form-control" name="row[shop_info]" type="text" value="">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shops_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shops_id" data-rule="required" min="0" data-source="shops/index" class="form-control selectpage" name="row[shops_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_no" data-rule="required" class="form-control" name="row[order_no]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div data-favisible="type=0">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Reissue_type')}:</label>
            <div class="col-xs-12 col-sm-8">

                <select  id="c-reissue_type" data-rule="required" class="form-control selectpicker" name="row[reissue_type]">
                    {foreach name="reissueTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                    {/foreach}
                </select>

            </div>
        </div>
        <div data-favisible="reissue_type=1">

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Reissue_type_zero')}:</label>
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-reissue_type_zero" data-rule="required" class="form-control selectpicker" name="row[reissue_type_zero]">
                        {foreach name="reissueTypeZeroList" item="vo"}
                        <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                        {/foreach}
                    </select>

                </div>
            </div>

            <div data-favisible="reissue_type_zero=1">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_status')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <div class="radio">
                            {foreach name="couponStatusList" item="vo"}
                            <label for="row[coupon_status]-{$key}"><input id="row[coupon_status]-{$key}" name="row[coupon_status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
                            {/foreach}
                        </div>

                    </div>
                </div>
            </div>

        </div>

        <div data-favisible="reissue_type=2">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Reissue_type_one')}:</label>
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-reissue_type_one" data-rule="required" class="form-control selectpicker" name="row[reissue_type_one]">
                        {foreach name="reissueTypeOneList" item="vo"}
                        <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                        {/foreach}
                    </select>

                </div>
            </div>

<!--            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-address" class="form-control" name="row[address]" type="text" value="">
                </div>
            </div>-->
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea id="c-address" class="form-control " rows="5" name="row[address]" cols="50"></textarea>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Reissue_order_no')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-reissue_order_no" class="form-control" name="row[reissue_order_no]" type="text" value="">
                </div>
            </div>
        </div>
    </div>
    <div data-favisible="type=2">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Cancel_type')}:</label>
            <div class="col-xs-12 col-sm-8">

                <select  id="c-cancel_type" data-rule="required" class="form-control selectpicker" name="row[cancel_type]">
                    {foreach name="cancelTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                    {/foreach}
                </select>

            </div>
        </div>
        <div data-favisible="cancel_type=1">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Cancel_type_zero')}:</label>
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-cancel_type_zero" data-rule="required" class="form-control selectpicker" name="row[cancel_type_zero]">
                        {foreach name="cancelTypeZeroList" item="vo"}
                        <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                        {/foreach}
                    </select>

                </div>
            </div>
        </div>
        <div data-favisible="cancel_type=2">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Cancel_type_one')}:</label>
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-cancel_type_one" data-rule="required" class="form-control selectpicker" name="row[cancel_type_one]">
                        {foreach name="cancelTypeOneList" item="vo"}
                        <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                        {/foreach}
                    </select>

                </div>
            </div>
        </div>
        <div data-favisible="cancel_type_one=3">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Cancel_type_one_two')}:</label>
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-cancel_type_one_two" data-rule="required" class="form-control selectpicker" name="row[cancel_type_one_two]">
                        {foreach name="cancelTypeOneTwoList" item="vo"}
                        <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                        {/foreach}
                    </select>

                </div>
            </div>
        </div>
    </div>
    <div data-favisible="type=3">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Addressee_type')}:</label>
            <div class="col-xs-12 col-sm-8">

                <select  id="c-addressee_type" data-rule="required" class="form-control selectpicker" name="row[addressee_type]">
                    {foreach name="addresseeTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                    {/foreach}
                </select>

            </div>
        </div>
        <div data-favisible="addressee_type=1">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Addressee_type_zero')}:</label>
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-addressee_type_zero" data-rule="required" class="form-control selectpicker" name="row[addressee_type_zero]">
                        {foreach name="addresseeTypeZeroList" item="vo"}
                        <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                        {/foreach}
                    </select>

                </div>
            </div>
        </div>
        <div data-favisible="addressee_type=2">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Addressee_type_one')}:</label>
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-addressee_type_one" data-rule="required" class="form-control selectpicker" name="row[addressee_type_one]">
                        {foreach name="addresseeTypeOneList" item="vo"}
                        <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                        {/foreach}
                    </select>

                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control " rows="5" name="row[remark]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
